home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Form;
- import javax.microedition.rms.RecordStore;
-
- class Chains$LoadThread extends Thread {
- // $FF: renamed from: d javax.microedition.lcdui.Displayable
- Displayable field_0;
- // $FF: synthetic field
- private final Chains this$0;
-
- public Chains$LoadThread(Chains var1, Displayable var2) {
- this.this$0 = var1;
- this.field_0 = var2;
- }
-
- public void run() {
- try {
- this.this$0.form.removeCommand(Chains.cont);
- Chains.progGauge.setValue(20);
- RecordStore var1 = RecordStore.openRecordStore("saveGame", true);
- Chains.progGauge.setValue(40);
- this.this$0.canvas.deserialise(var1.getRecord(1));
- Chains.progGauge.setValue(60);
- var1.closeRecordStore();
- Chains.progGauge.setValue(80);
- RecordStore.deleteRecordStore("saveGame");
- Chains.progGauge.setValue(100);
- Chains.display.setCurrent(this.this$0.canvas);
- this.this$0.inGame = true;
- } catch (Exception var5) {
- Form var2 = new Form("Phone Error");
- var2.append("There was an error loading your game.");
- ((Displayable)var2).addCommand(Chains.instQuit);
- ((Displayable)var2).setCommandListener(Chains.access$0(this.this$0));
- Chains.display.setCurrent(var2);
- this.this$0.canvas.reset();
-
- try {
- RecordStore.deleteRecordStore("saveGame");
- } catch (Exception var4) {
- }
- }
-
- }
- }
-